import request from '@/utils/request'

// 查询职业技能鉴定证书统计列表
export function listCertification(query) {
  return request({
    url: '/ledger/certification/list',
    method: 'get',
    params: query
  })
}

// 查询职业技能鉴定证书统计详细
export function getCertification(id) {
  return request({
    url: '/ledger/certification/' + id,
    method: 'get'
  })
}

// 新增职业技能鉴定证书统计
export function addCertification(data) {
  return request({
    url: '/ledger/certification',
    method: 'post',
    data: data
  })
}

// 修改职业技能鉴定证书统计
export function updateCertification(data) {
  return request({
    url: '/ledger/certification',
    method: 'put',
    data: data
  })
}

// 删除职业技能鉴定证书统计
export function delCertification(id) {
  return request({
    url: '/ledger/certification/' + id,
    method: 'delete'
  })
}
export function exportCertification(query) {
  return request({
    url: '/ledger/certification/export',
    method: 'get',
    params: query
  })
}
export function optionselect() {
  return request({
    url: '/system/post/optionselect',
    method: 'get'
  })
}
